﻿@using CodeCamp.Models.Schedule
@model ScheduleBuildingEditViewModel.BuildingEditModel

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>

        <legend>Add</legend>

        @Html.HiddenFor(model => model.Id)
        <div class="editor-label">
            @Html.LabelFor(model => model.Name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </div>

        <p>
            <input type="submit" value="Add New Building" />
        </p>
    </fieldset>
}
